﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QskjHistoryDataKafka.Dto
{
    /// <summary>
    /// 场站设备状态车载设备状态
    /// </summary>
    public class DeviceStatus
    {
        /// <summary>
        /// 设备国标id
        /// </summary>
        public string? devGbId { get; set; }
        /// <summary>
        /// 设备状态 在线:online 离线:offline 
        /// </summary>
        public string? devStatus { get; set; }
        /// <summary>
        /// 上报时间戳(单位毫秒)
        /// </summary>
        public long? timestamp { get; set; }
        /// <summary>
        /// 设备接入的标识，用于区分设备状态是哪一个设备接入上报
        /// </summary>
        public string? accessPlatformNode { get; set; }
    }
    /// <summary>
    /// 车载设备位置信息
    /// </summary>
    public class VehicleGps
    {
        /// <summary>
        /// 设备国标id
        /// </summary>
        public string? devGbId { get; set; }
        /// <summary>
        /// 经度 （必填）格式        ddd.ddddddddd(默认WGS84坐标)
        /// </summary>
        public string? latitude { get; set; }
        /// <summary>
        /// 纬度（必填）格式        ddd.ddddddddd(默认WGS84坐标)
        /// </summary>
        public string? longitude { get; set; }
        /// <summary>
        /// 方向 （非必填） 取值为当前摄像头方向与正北方的顺时针夹角,取值范围 0°~360° ,单位:(° )
        /// </summary>
        public string? direction { get; set; }
        /// <summary>
        /// 速度 （非必填） 速度（Km/s）
        /// </summary>
        public string? speed { get; set; }
        /// <summary>
        /// 海拔高度 （非必填） 高度(m)
        /// </summary>
        public string? altitude { get; set; }
        /// <summary>
        /// 上报时间戳(单位毫秒)
        /// </summary>
        public string? timestamp { get; set; }
        /// <summary>
        /// 车辆运营状态数据3:0:运营状态:1;停运状态
        /// </summary>
        public string? carState { get; set; }
    }
    /// <summary>
    /// 车载设备报警信息
    /// </summary>
    public class VehicleAlarm
    {
        /// <summary>
        /// 设备国标id
        /// </summary>
        public string? devGbId { get; set; }
        /// <summary>
        /// 报警id
        /// </summary>
        public string? alarmId { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string? vehicleNo { get; set; }
        /// <summary>
        /// 告警类型
        /// </summary>
        public int alarmMainType { get; set; }
        /// <summary>
        /// 告警类型
        /// </summary>
        public int alarmSubType { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int alarmType { get; set; }
        /// <summary>
        /// 告警时间
        /// </summary>
        public string? alarmTime { get; set; }
        /// <summary>
        /// 经度格式        ddd.ddddddddd(默认WGS84坐标)
        /// </summary>
        public string? latitude { get; set; }
        /// <summary>
        /// 纬度格式        ddd.ddddddddd(默认WGS84坐标)
        /// </summary>
        public string? longitude { get; set; }
        /// <summary>
        /// 速度（Km/s）
        /// </summary>
        public string? speed { get; set; }
        /// <summary>
        /// 报警附件
        /// </summary>
        public string? url { get; set; }
        /// <summary>
        /// 车载平台厂商        中安-“ZAKJ”锐明-“RUIMING”
        /// </summary>
        public string? platform { get; set; }
        /// <summary>
        /// 上报时间戳(单位毫秒) （必填）
        /// </summary>
        public long timestamp { get; set; }
    }
}